package com.app.bean;


import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.Value;
import lombok.extern.java.Log;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Log
public class User {
    private Integer id;
    private String userName;
    private Date signupTime;

    public static void main(String[] args) {
       User user = new User();
       user.setId(1);
       user.setUserName("ddd");
       user.setSignupTime(new Date());
       System.out.println(user.toString());

       User user1 = new User(2, "zs", new Date());
       System.out.println(user1.toString());

       Test test = new Test(3, "bbs");
       System.out.println(test.getName());

       Test2 test2 = Test2.builder().id(3).name("LS").build();
       System.out.println(test2);
       System.out.println(test2.toString());
       log.info("app test log");
    }
}

@Value
class Test{
    private Integer id;
    private String name;
}

@Builder
@ToString
class Test2{
    private Integer id;
    private String name;
}